package com.liefox.service;

import com.liefox.mapper.ChatMapper;
import com.liefox.pojo.Chat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zjh
 * @Date 2022-10-23 下午 11:01
 **/
@Service
public class ChatServiceImpl implements ChatService {

    @Autowired
    private ChatMapper chatMapper;

    @Override
    public List<Chat> getChatList() {
        return chatMapper.getChatList();
    }

    @Override
    public int addChatMes(Chat chat) {
        return chatMapper.addChatMes(chat);
    }
}
